package com.yjy.mapper;

import com.yjy.entity.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BookMapper {
    List<Book> selectAll(Book book);

    void insert(Book book);


    void updateById(Book book);

    @Delete("delete from book where id = #{id}")
    void deleteById(Integer id);


    @Select("SELECT * from `book` where id = #{id}")
    Book selectById(String id);
}
